#ifndef libloop_H
#define libloop_H

#include <linux/loop.h>
#define MAX_LOOP 254


/* loop.c */
int set_loop(char *device, char filename[], unsigned long long offset, unsigned long long sizelimit);
int find_unused_loopno(char *template);
char *find_unused_loop(char *template);
int del_loop(char *device);
int query_loop(char *device, struct loop_info *li);
int loop_get_filename(char *device, char **filename);

#endif

